package com.swsc.solarverse.service.analysis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swsc.solarverse.dao.entity.analysis.InverterDayDO;
import com.swsc.solarverse.dao.mapper.analysis.InverterDayMapper;
import com.swsc.solarverse.model.InverterGenerationPowerBO;
import com.swsc.solarverse.model.StationGenerationPowerBO;
import com.swsc.solarverse.service.analysis.IInverterDayService;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-09-04
 */
@Service
public class InverterDayServiceImpl extends ServiceImpl<InverterDayMapper, InverterDayDO> implements IInverterDayService {

    @Override
    public StationGenerationPowerBO dailyGenerationPower(Integer tenantNo, Integer organNo, Short year, Byte month, Byte day) {
        return baseMapper.dailyGenerationPower(tenantNo, organNo, year, month, day);
    }

    @Override
    public StationGenerationPowerBO sumDailyGenerationPower(Collection<Integer> organNoIn, Short year, Byte month, Byte day) {
        return baseMapper.sumDailyGenerationPower(organNoIn, year, month, day);
    }


    @Override
    public StationGenerationPowerBO monthlyGenerationPower(Integer tenantNo, Integer organNo, Short year, Byte month) {
        return baseMapper.monthlyGenerationPower(tenantNo, organNo, year, month);
    }

    @Override
    public StationGenerationPowerBO yearlyGenerationPower(Integer tenantNo, Integer organNo, Short year) {
        return baseMapper.yearlyGenerationPower(tenantNo, organNo, year);
    }

    @Override
    public List<InverterGenerationPowerBO> inverterDailyGenerationPower(Short year, Byte month, Byte day) {
        return baseMapper.inverterDailyGenerationPower(year, month, day);
    }

    @Override
    public List<InverterGenerationPowerBO> inverterMonthlyGenerationPower(Short year, Byte month) {
        return baseMapper.inverterMonthlyGenerationPower(year, month);
    }

    @Override
    public List<InverterGenerationPowerBO> inverterYearlyGenerationPower(Short year) {
        return baseMapper.inverterYearlyGenerationPower(year);
    }

    @Override
    public List<StationGenerationPowerBO> stationDailyGenerationPower(Short year, Byte month, Byte day) {
        return baseMapper.stationDailyGenerationPower(year, month, day);
    }

    @Override
    public List<StationGenerationPowerBO> stationMonthlyGenerationPower(Short year, Byte month) {
        return baseMapper.stationMonthlyGenerationPower(year, month);
    }

    @Override
    public List<StationGenerationPowerBO> stationYearlyGenerationPower(Short year) {
        return baseMapper.stationYearlyGenerationPower(year);
    }
}
